Contents
  1. 1. Introduction
    1. 1.1. 1.清空表
    2. 1.2. 2.重置id值
    3. 1.3. 3.数据的创建和删除

Introduction

这里列出了sql语句中的不常用的语句。这里是针对当时工作时编写的,但是这些sql语句可能不限于Mysql

1.清空表

1
truncate table t_application_property;

2.重置id值

1
update t_application_property t set t.id=t.id-66 where t.id between 87 and 105;

3.数据的创建和删除

1
2
drop database if exists abc;
create database abc;
Contents
  1. 1. Introduction
    1. 1.1. 1.清空表
    2. 1.2. 2.重置id值
    3. 1.3. 3.数据的创建和删除